package me.kuye.jkuye.plugin.activerecord;

import java.util.HashMap;
import java.util.Map;

public class TableMapping {
	private static TableMapping tableMapping = new TableMapping();
	private final Map<Class<? extends Model>, Table> modelToTableMap = new HashMap<Class<? extends Model>, Table>();

	private TableMapping() {

	}

	public static TableMapping getInstance() {
		return tableMapping;
	}

	public Table getTable(Class<? extends Model> modelClass) {
		return modelToTableMap.get(modelClass);
	}
}
